<!doctype html>
<html>
<head>
<meta charset="utf-8">
<link href="/Public/admin/css/style.css" rel="stylesheet">
<link href="/Public/admin/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" href="/Public/plugin/editor/themes/default/default.css" />
<link href="/Public/plugin/select2/select2.css" rel="stylesheet">
<script charset="utf-8" src="/Public/plugin/editor/kindeditor.js"></script>
<script charset="utf-8" src="/Public/plugin/editor/lang/zh_CN.js"></script>
<style>
#imgList{
	max-width:510px;
}
#imgList .imgBox{
	width:160px;
	height:100px;
	position:relative;
	float:left;
	overflow:hidden;
	border:1px solid #ccc;
	margin-right:5px;

}
.imgBox img{
	width:156px;
	height:96px;
	margin:2px 2px;
}
.close_icon{
	position:absolute;
	cursor:pointer;	
	right:0px;
	top:-5px;
	color:#666;
	display:none;
	font-size:14px;
}
.borders{
	position:relative;
	width:400px;
	height:20px;
}
.borders div,.borders span{
	display:inline-block;	
}
</style>
<title>{$title}</title>
</head>

<body>
    <div class="breadNav">
        <ul class="breadNavBar">
            <li><i class="icon-home" style="font-size:16px"></i></li>
            <li><a href="javascript:;" onClick="parent.location.reload('/Admin/Index/index');">首页</a></li>
            <li>&gt;</li>
            <li><a href="/Admin/Exam/index">题库管理</a></li>
            <li>&gt;</li>
            <li>题库导入</li>
        </ul>
    </div>
    <div style="clear:both;"></div>
    <div class="filter">
        <a href="javascript:history.go(-1);location.reload();" class="btn btn-primary btn-lg" id="backBtn"><i class="icon-reply"></i>&nbsp;返回</a>
    </div>
    <form id="form" class="from" method="post" action="{:U('examAdd')}">
		<input type="hidden" name="catID" value="{$_GET['catId']}">
        <div class="form-group">
            <label class="control-label">题库文件:</label>
			<input type="text" id="fileUrl" name="fileUrl" class="form-control" value="" style="width:300px;">
			<button type="button" id="file_btn" class="btn btn-primary disBlock"><i class="icon-plus"></i>&nbsp;选择文件</button>
		</div>
        <div class="form-group">
            <label class="control-label">&nbsp;</label>
            <button class="btn btn-primary"><i class='icon-check'></i>&nbsp;保存</button>
        </div>    
    </form>
</body>
<script src="/Public/js/jquery.min.js?ver=1.8.3"></script>
<script src="/Public/admin/js/main.js"></script>
<script src="/Public/js/vali.js"></script>
<script src="/Public/plugin/select2/select2.min.js"></script>
<script>
KindEditor.ready(function(K) {
	var editor = K.editor({
		basePath: '/Public/plugin/editor/'
		, uploadJson: '/Public/plugin/fileup/upload_json.php?type=file&m=Exam'
		, fileManagerJson: '/Public/plugin/fileup/file_manager_json.php?type=file&m=Exam'
		, allowFileManager: true
	});
	K('#file_btn').click(function () {
		editor.loadPlugin('image', function () {
			editor.plugin.imageDialog({
				imageUrl: K('#fileUrl').val(),
				clickFn: function (url, title, width, height, border, align) {
					K('#fileUrl').val(url);
					editor.hideDialog();
				}
			});
		});
	});
});
$(document).ready(function(){
	$('#catID').select2();//调用方法
	$("form").vali({
		"control":[

//			{"id":"catID","rule":"notNull","errorText":""},

		]
	})
	

});

</script>
</html>
